/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.plant.service;

import java.util.List;

import com.plant.entity.RegisterCode;
import com.plant.entity.UgcDiviceToken;
import com.plant.entity.UgcFriends;
import com.plant.entity.UgcUser;
import com.plant.entity.UgcWeixinUserinf;

/**
 *
 * @author Tomli                                
 * 
 */
public interface RegisterService {
        
        public boolean add(RegisterCode rg);                    //添加到好友请求列表的方法 
        
    	public RegisterCode checkUser(RegisterCode rg); 		//登录验证
    	
    	public UgcUser checktel(RegisterCode rg); 				//验证手机号是否存在
    	
    	public void update(RegisterCode rg);					//修改状态
    	
    	public List<Object> getBytel(RegisterCode rg);			//通过手机号获取用户信息
    	
    	public List<Object> searchtel(RegisterCode rg);         //通过用户id查找用户的 手机号码
    	
    	public boolean addtel(UgcUser u);						//添加新手机号到数据库
    	
    	public UgcUser checkUser(UgcUser user);					//--通过手机号 和密码验证用户登录
    	
    	public boolean UpdatePass(UgcUser user);                //--通过手机号 修改密码
    	
    	public boolean addfriend(UgcFriends uf);                //$:默认添加六个好友
    	
    	public boolean AddDiviceToken(UgcDiviceToken ud);       //添加DiviceToken
    	
    	public UgcUser CheckOpenId(UgcUser user);				//检查用户的OpenId
    	
    	public List<Object> GetByOpenId(UgcUser user);          //通过OpenID获取用户所有信息
    	
    	public boolean AddWeiXinUser(UgcWeixinUserinf uwf);     //添加微信用户
    	
    	public UgcUser CheckUnionId(UgcUser user);				//检查用户的OpenId
}
